package com.gadgets.cm01.role.controller;

import com.gadgets.cm01.role.dto.UserRoleAllocationDTO;
import com.gadgets.framework.common.dto.HttpBaseResp;
import com.gadgets.framework.common.exception.GadgetsServiceException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author UncleXiu
 * @version V1.0.0
 * @data 2020-10-15
 * 
 */
public interface IRoleUserAllocationController {

    /**
     * 分配/收回角色给指定用户
     * @param request                   请求对象
     * @param response                  应答对象
     * @param allocationDTO             执行信息
     * @return                          执行结果
     * @throws GadgetsServiceException  异常信息
     */
    HttpBaseResp<Object> roleuserAllocation(HttpServletRequest request, HttpServletResponse response, UserRoleAllocationDTO allocationDTO) throws GadgetsServiceException;

}
